package nl.haemers.testrunners 
{
	import flash.events.Event;
	import nl.haemers.base.BaseMovieClip;
	import nl.haemers.geom.BaseGrid;
	import nl.haemers.ui.grids.ClickCell;
	import nl.haemers.ui.grids.Cell;
	/**
	 * ...
	 * @author Jonathan Haemers
	 */
	public class GeomRunner extends BaseMovieClip
	{
		public var grid				:BaseGrid;
		
		public function GeomRunner() 
		{
			super();
		}
		
		override protected function init(e:Event = null) : void
		{
			super.init();
			start();
		}
		
		public function start() : void
		{
			createGrid();
			//configListeners();
		}
		
		protected function createGrid() : void
		{
			grid = new BaseGrid();
			grid.totalColumns = 10;
			grid.totalRows = 10;
			grid.cellWidth = 20;
			grid.cellHeight = 20;
			grid.customCell = Cell;
			//grid.lineStyle = 
			
			addChild(grid);
			grid.draw();
			grid.x = grid.width * .5;
			grid.y = grid.height * .5;
		}
		
		protected function configListeners() : void
		{
			
		}
		
	}

}